package com.example.student_blocket;

import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;
import android.app.Activity;
import android.content.Intent;

public class MainActivity extends Activity {

	private final String TAG = "Student_Blocket";
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
		
		fp_regutton();
	}

	private void fp_regutton() {
		//1.get a reference to the button
		Button fp_regbutton = (Button) findViewById(R.id.fp_RegBtn);
		View.OnClickListener myListener = new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Log.i(TAG, "Registration Page");
				Toast.makeText(MainActivity.this, "Registration Page", Toast.LENGTH_LONG).show();
				
				startActivity(new Intent(MainActivity.this,RegisterActivity.class));
				
			}
		};
		fp_regbutton.setOnClickListener(myListener);
		//2.set the clicklistener to run the ocde
		
	}


}
